<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>一鸣真鲜奶吧 - 加入我们</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-4.3.1.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
<style>
    /* 页面通用样式 */
    body {
        font-family: 'Microsoft YaHei', sans-serif;
        scroll-behavior: smooth;
    }
    
    .nav {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .content {
        padding: 20px 0;
    }
    
    .footer {
        background-color: #f8f9fa;
        text-align: center;
        padding: 15px 0;
        margin-top: 30px;
    }
    
    /* 加入我们页面特有样式 */
    .join-banner {
        background-image: url('https://picsum.photos/id/1067/1920/400');
        background-size: cover;
        background-position: center;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        position: relative;
    }
    
    .join-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.3);
    }
    
    .join-banner h1 {
        font-size: 36px;
        font-weight: bold;
        z-index: 1;
    }
    
    /* 职位列表样式 */
    .job-list {
        margin-top: 40px;
    }
    
    .job-card {
        border: 1px solid #eaeaea;
        border-radius: 8px;
        margin-bottom: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .job-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .job-header {
        padding: 20px;
        background-color: #f8f9fa;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .job-title {
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }
    
    .job-info {
        color: #666;
        margin-top: 5px;
    }
    
    .job-toggle {
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    
    .job-content {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .job-detail {
        padding: 20px 0;
        border-top: 1px solid #eaeaea;
    }
    
    .apply-btn {
        background-color: #ff6600;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        margin-bottom: 20px;
    }
    
    .apply-btn:hover {
        background-color: #e65c00;
    }
    
    /* 公司福利样式 */
    .benefits-section {
        background-color: #f8f9fa;
        padding: 60px 0;
        margin-top: 60px;
    }
    
    .benefit-item {
        text-align: center;
        margin-bottom: 30px;
        padding: 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .benefit-item:hover {
        background-color: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .benefit-icon {
        font-size: 36px;
        color: #ff6600;
        margin-bottom: 15px;
    }
    
    /* 表单样式 */
    .apply-form {
        background-color: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 40px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        border-radius: 4px;
        transition: border-color 0.2s ease;
    }
    
    .form-control:focus {
        border-color: #ff6600;
        box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
    }
    
    .form-label {
        font-weight: bold;
    }
    
    .upload-btn {
        position: relative;
        overflow: hidden;
    }
    
    .upload-btn input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }
    
    .error-message {
        color: #dc3545;
        font-size: 14px;
        display: none;
        margin-top: 5px;
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
        .join-banner h1 {
            font-size: 28px;
        }
        
        .job-title {
            font-size: 20px;
        }
        
        .job-info span {
            display: block;
            margin-bottom: 5px;
        }
    }
</style>
</head>

<body>
<div class="container">
    <!-- 导航栏 -->
    <div class="nav" style="text-align: left">
        <button type="button" class="btn btn-lg"><a href="index.html"><img src="images/logo.png" width="100" height="80" alt=""/></a></button>
        <li><a href="qyjs.html"><button type="button" class="btn btn-lg">企业介绍</button></a></li>
        <div class="btn-group">
            <li><a href="cpzs.html"> <button type="button" class="btn btn-lg">产品展示</button></a></li>
            <li> <button type="button" class="btn btn-lg dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="sr-only">Toggle Dropdown</span> </button>
                <div class="dropdown-menu">
                    <h5 class="dropdown-header">产品分类：</h5>
                    <a class="dropdown-item" href="#">新鲜乳品</a><a class="dropdown-item" href="#">现调饮品</a><a class="dropdown-item" href="#">烘焙现烤</a> <a class="dropdown-item" href="#">蛋糕西点</a><a class="dropdown-item" href="#">鲜食饭团</a><a class="dropdown-item" href="#">儿童零食</a>
                    <div class="dropdown-divider"></div>
                </div></li>
        </div>
        <form action="#" method="get">
            <input type="text" name="search" placeholder="请输入搜索内容">
            <input type="submit" value="搜索">
            <li><a href="cpgs.html"><button type="button" class="btn btn-lg">产品故事</button></a></li>
            <li><a href="wtfk.html"><button type="button" class="btn btn-lg">问题反馈</button></a></li>
            <li><a href="join_us.html"><button type="button" class="btn btn-lg active">加入我们</button></a></li>
        </form>
    </div>
    
    <!-- 内容区域 -->
    <div class="content">
        <!-- 横幅 -->
        <div class="join-banner">
            <h1>加入我们，共创未来</h1>
        </div>
        
        <!-- 职位列表 -->
        <div class="container job-list">
            <h2 class="text-center mb-5">热门职位</h2>
            
            <!-- 职位1 -->
            <div class="job-card">
                <div class="job-header" data-job-id="job1">
                    <div>
                        <div class="job-title">门店店长</div>
                        <div class="job-info">
                            <span class="mr-3"><i class="fa fa-map-marker"></i> 温州</span>
                            <span class="mr-3"><i class="fa fa-clock-o"></i> 全职</span>
                            <span><i class="fa fa-money"></i> 8000-12000元/月</span>
                        </div>
                    </div>
                    <div class="job-toggle">+</div>
                </div>
                <div class="job-content" id="job1-content">
                    <div class="job-detail">
                        <p><strong>岗位职责：</strong></p>
                        <ul>
                            <li>负责门店日常运营管理，确保门店高效运作</li>
                            <li>制定销售计划并组织实施，完成销售目标</li>
                            <li>管理门店员工，包括招聘、培训、绩效考核等</li>
                            <li>维护门店客户关系，提升客户满意度</li>
                        </ul>
                        <p><strong>任职要求：</strong></p>
                        <ul>
                            <li>大专及以上学历，2年以上零售行业管理经验</li>
                            <li>具备良好的沟通能力和团队管理能力</li>
                            <li>有连锁门店管理经验者优先</li>
                            <li>熟悉乳制品行业者优先</li>
                        </ul>
                    </div>
                    <button class="apply-btn" data-job="门店店长">立即申请</button>
                </div>
            </div>
            
            <!-- 职位2 -->
            <div class="job-card">
                <div class="job-header" data-job-id="job2">
                    <div>
                        <div class="job-title">烘焙师</div>
                        <div class="job-info">
                            <span class="mr-3"><i class="fa fa-map-marker"></i> 杭州</span>
                            <span class="mr-3"><i class="fa fa-clock-o"></i> 全职</span>
                            <span><i class="fa fa-money"></i> 6000-10000元/月</span>
                        </div>
                    </div>
                    <div class="job-toggle">+</div>
                </div>
                <div class="job-content" id="job2-content">
                    <div class="job-detail">
                        <p><strong>岗位职责：</strong></p>
                        <ul>
                            <li>负责各类面包、蛋糕等烘焙产品的制作</li>
                            <li>确保产品质量和口味符合标准</li>
                            <li>协助门店进行新品研发和试吃活动</li>
                            <li>负责烘焙区域的卫生和安全管理</li>
                        </ul>
                        <p><strong>任职要求：</strong></p>
                        <ul>
                            <li>1年以上烘焙师工作经验</li>
                            <li>具备扎实的烘焙技能和创新能力</li>
                            <li>能够适应早起工作安排</li>
                            <li>有蛋糕装饰技能者优先</li>
                        </ul>
                    </div>
                    <button class="apply-btn" data-job="烘焙师">立即申请</button>
                </div>
            </div>
            
            <!-- 职位3 -->
            <div class="job-card">
                <div class="job-header" data-job-id="job3">
                    <div>
                        <div class="job-title">区域销售经理</div>
                        <div class="job-info">
                            <span class="mr-3"><i class="fa fa-map-marker"></i> 上海</span>
                            <span class="mr-3"><i class="fa fa-clock-o"></i> 全职</span>
                            <span><i class="fa fa-money"></i> 10000-15000元/月</span>
                        </div>
                    </div>
                    <div class="job-toggle">+</div>
                </div>
                <div class="job-content" id="job3-content">
                    <div class="job-detail">
                        <p><strong>岗位职责：</strong></p>
                        <ul>
                            <li>负责区域内销售渠道的开发和维护</li>
                            <li>制定区域销售策略和计划，完成销售目标</li>
                            <li>管理区域销售团队，提供培训和指导</li>
                            <li>分析市场动态，提出市场推广建议</li>
                        </ul>
                        <p><strong>任职要求：</strong></p>
                        <ul>
                            <li>本科及以上学历，3年以上销售管理经验</li>
                            <li>具备良好的市场分析和开拓能力</li>
                            <li>有快消品行业销售经验者优先</li>
                            <li>能够适应频繁出差</li>
                        </ul>
                    </div>
                    <button class="apply-btn" data-job="区域销售经理">立即申请</button>
                </div>
            </div>
        </div>
        
        <!-- 公司福利 -->
        <div class="benefits-section">
            <div class="container">
                <h2 class="text-center mb-5">我们的福利</h2>
                <div class="row">
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-heart"></i></div>
                            <h4>完善的社保福利</h4>
                            <p>五险一金、商业保险，全方位保障您的生活</p>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-graduation-cap"></i></div>
                            <h4>专业培训</h4>
                            <p>提供行业领先的专业培训，助您不断成长</p>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-cutlery"></i></div>
                            <h4>员工福利</h4>
                            <p>免费产品、生日福利、节日礼品，关爱每一位员工</p>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-sun-o"></i></div>
                            <h4>带薪年假</h4>
                            <p>根据工作年限享受带薪年假，让您劳逸结合</p>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-users"></i></div>
                            <h4>团队活动</h4>
                            <p>定期组织团队建设活动，增强团队凝聚力</p>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="benefit-item">
                            <div class="benefit-icon"><i class="fa fa-line-chart"></i></div>
                            <h4>晋升空间</h4>
                            <p>广阔的晋升空间，公平的竞争机制</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 申请表单 -->
        <div class="container">
            <h2 class="text-center mb-4">申请职位</h2>
            <div class="row justify-content-center">
                <div class="col-md-8">
                    <div class="apply-form">
                        <form id="job-application-form">
                            <div class="form-group">
                                <label for="job-position" class="form-label">申请职位 <span class="text-danger">*</span></label>
                                <select class="form-control" id="job-position" name="job-position">
                                    <option value="">请选择申请的职位</option>
                                    <option value="门店店长">门店店长</option>
                                    <option value="烘焙师">烘焙师</option>
                                    <option value="区域销售经理">区域销售经理</option>
                                </select>
                                <div class="error-message" id="job-position-error">请选择申请的职位</div>
                            </div>
                            
                            <div class="form-group">
                                <label for="fullname" class="form-label">姓名 <span class="text-danger">*</span></label>
                                <input type="text" class="form-control" id="fullname" name="fullname" placeholder="请输入您的姓名">
                                <div class="error-message" id="fullname-error">请输入您的姓名</div>
                            </div>
                            
                            <div class="form-group">
                                <label for="phone" class="form-label">手机号码 <span class="text-danger">*</span></label>
                                <input type="tel" class="form-control" id="phone" name="phone" placeholder="请输入您的手机号码">
                                <div class="error-message" id="phone-error">请输入有效的手机号码</div>
                            </div>
                            
                            <div class="form-group">
                                <label for="email" class="form-label">电子邮箱 <span class="text-danger">*</span></label>
                                <input type="email" class="form-control" id="email" name="email" placeholder="请输入您的电子邮箱">
                                <div class="error-message" id="email-error">请输入有效的电子邮箱</div>
                            </div>
                            
                            <div class="form-group">
                                <label for="experience" class="form-label">工作经验</label>
                                <select class="form-control" id="experience" name="experience">
                                    <option value="应届毕业生">应届毕业生</option>
                                    <option value="1-3年">1-3年</option>
                                    <option value="3-5年">3-5年</option>
                                    <option value="5-10年">5-10年</option>
                                    <option value="10年以上">10年以上</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label for="education" class="form-label">最高学历</label>
                                <select class="form-control" id="education" name="education">
                                    <option value="高中及以下">高中及以下</option>
                                    <option value="大专">大专</option>
                                    <option value="本科">本科</option>
                                    <option value="硕士">硕士</option>
                                    <option value="博士及以上">博士及以上</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label for="resume" class="form-label">上传简历</label>
                                <div class="input-group">
                                    <div class="custom-file">
                                        <input type="file" class="custom-file-input" id="resume" name="resume" accept=".pdf,.doc,.docx">
                                        <label class="custom-file-label" for="resume">选择文件...</label>
                                    </div>
                                </div>
                                <small class="form-text text-muted">请上传PDF、DOC或DOCX格式的简历文件</small>
                            </div>
                            
                            <div class="form-group">
                                <label for="message" class="form-label">留言（可选）</label>
                                <textarea class="form-control" id="message" name="message" rows="3" placeholder="请输入您想补充的信息"></textarea>
                            </div>
                            
                            <div class="form-group text-center">
                                <button type="submit" class="btn btn-primary btn-lg">提交申请</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚 -->
    <div class="footer">版权©所有：231208011077陶佳慧</div>
</div>

<script>
    // 页面加载完成后执行
    document.addEventListener('DOMContentLoaded', function() {
        // 职位卡片展开/收起功能
        const jobHeaders = document.querySelectorAll('.job-header');
        jobHeaders.forEach(header => {
            header.addEventListener('click', function() {
                const jobId = this.getAttribute('data-job-id');
                const content = document.getElementById(`${jobId}-content`);
                const toggle = this.querySelector('.job-toggle');
                
                if (content.style.maxHeight) {
                    content.style.maxHeight = null;
                    toggle.textContent = '+';
                } else {
                    content.style.maxHeight = content.scrollHeight + 'px';
                    toggle.textContent = '-';
                }
            });
        });
        
        // 职位申请按钮点击事件
        const applyButtons = document.querySelectorAll('.apply-btn');
        applyButtons.forEach(button => {
            button.addEventListener('click', function() {
                const jobTitle = this.getAttribute('data-job');
                const jobSelect = document.getElementById('job-position');
                
                // 选择对应的职位
                for (let i = 0; i < jobSelect.options.length; i++) {
                    if (jobSelect.options[i].value === jobTitle) {
                        jobSelect.selectedIndex = i;
                        break;
                    }
                }
                
                // 平滑滚动到表单
                const form = document.getElementById('job-application-form');
                form.scrollIntoView({ behavior: 'smooth', block: 'start' });
                
                // 添加焦点效果
                setTimeout(() => {
                    jobSelect.classList.add('focused');
                    setTimeout(() => {
                        jobSelect.classList.remove('focused');
                    }, 1000);
                }, 800);
            });
        });
        
        // 文件上传按钮文本更新
        const resumeInput = document.getElementById('resume');
        if (resumeInput) {
            resumeInput.addEventListener('change', function() {
                const fileName = this.value.split('\\').pop();
                const label = this.nextElementSibling;
                label.textContent = fileName ? fileName : '选择文件...';
            });
        }
        
        // 表单实时验证
        const formFields = {
            'job-position': {
                required: true,
                validate: function(value) {
                    return value.trim() !== '';
                }
            },
            'fullname': {
                required: true,
                validate: function(value) {
                    return value.trim() !== '';
                }
            },
            'phone': {
                required: true,
                validate: function(value) {
                    return /^1[3-9]\d{9}$/.test(value);
                }
            },
            'email': {
                required: true,
                validate: function(value) {
                    return /^\S+@\S+\.\S+$/.test(value);
                }
            }
        };
        
        // 为表单字段添加实时验证
        for (const fieldId in formFields) {
            const field = document.getElementById(fieldId);
            if (field) {
                field.addEventListener('blur', function() {
                    validateField(fieldId, this.value);
                });
                
                field.addEventListener('input', function() {
                    if (this.classList.contains('is-invalid')) {
                        validateField(fieldId, this.value);
                    }
                });
            }
        }
        
        // 表单提交处理
        const form = document.getElementById('job-application-form');
        if (form) {
            form.addEventListener('submit', function(e) {
                e.preventDefault();
                let isValid = true;
                
                // 验证所有必填字段
                for (const fieldId in formFields) {
                    const field = document.getElementById(fieldId);
                    if (field) {
                        const isValidField = validateField(fieldId, field.value);
                        isValid = isValid && isValidField;
                    }
                }
                
                if (isValid) {
                    // 模拟表单提交
                    const formData = new FormData(this);
                    const formValues = {};
                    formData.forEach((value, key) => {
                        formValues[key] = value;
                    });
                    
                    // 显示提交成功消息
                    showSuccessMessage();
                    
                    // 重置表单
                    this.reset();
                    document.querySelector('.custom-file-label').textContent = '选择文件...';
                }
            });
        }
        
        // 字段验证函数
        function validateField(fieldId, value) {
            const fieldConfig = formFields[fieldId];
            const fieldElement = document.getElementById(fieldId);
            const errorElement = document.getElementById(`${fieldId}-error`);
            
            if (!fieldConfig || !fieldElement) return true;
            
            let isValid = true;
            
            if (fieldConfig.required) {
                isValid = fieldConfig.validate(value);
            }
            
            if (!isValid) {
                fieldElement.classList.add('is-invalid');
                if (errorElement) errorElement.style.display = 'block';
            } else {
                fieldElement.classList.remove('is-invalid');
                if (errorElement) errorElement.style.display = 'none';
            }
            
            return isValid;
        }
        
        // 显示提交成功消息
        function showSuccessMessage() {
            // 创建成功消息元素
            const successMessage = document.createElement('div');
            successMessage.className = 'alert alert-success text-center';
            successMessage.innerHTML = `
                <h4 class="alert-heading">申请提交成功！</h4>
                <p>感谢您的申请，我们会尽快审核您的简历并与您联系。</p>
                <i class="fa fa-check-circle" style="font-size: 60px; color: #28a745; margin-top: 20px;"></i>
            `;
            
            // 替换表单为成功消息
            const formContainer = form.parentElement;
            formContainer.innerHTML = '';
            formContainer.appendChild(successMessage);
            
            // 添加动画效果
            setTimeout(() => {
                successMessage.classList.add('fade-in');
            }, 10);
            
            // 3秒后平滑滚动到顶部
            setTimeout(() => {
                window.scrollTo({ top: 0, behavior: 'smooth' });
            }, 1500);
        }
    });
</script>
</body>
</html>